package com.bodu.depress.mapper;

import com.bodu.core.common.CommonMapper;
import com.bodu.depress.entity.vo.DepressCollectResultVo;
import com.bodu.depress.entity.request.DepressCollectResultRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* 题集解析 Mapper
* @author Administrator
*/
@Mapper
public interface DepressCollectResultMapper extends CommonMapper<DepressCollectResultRequest, DepressCollectResultVo> {

    /**
     * 根据collectId 更新删除
     * @param collectId
     * @return
     */
    Integer updateDelFlagByCollectId(@Param("collectId") Long collectId);

    /**
     * 查询得分结果
     * @param collectId
     * @param score
     * @return
     */
    DepressCollectResultVo findDepressResultByCollectIdAndScore(@Param("collectId") Long collectId, @Param("score") Integer score);
}
